package com.wngbms.aop._04;

import com.wngbms.aop.staticproxy.EchoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AspectJXmlPointcutDemo {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:/META-INF/spring-aop-point-cut.xml");

        EchoService echoService = context.getBean("echoService", EchoService.class);
        System.out.println(echoService.echo("tim"));
        // class com.sun.proxy.$Proxy4
        System.out.println(echoService.getClass());

        context.close();
    }
}
